package com.banyuan.factory;

/**
 * @author 陶继发
 * @version 1.8
 */
public class Factory {
    public static Person getPerson(String country){
        if("美国".equals(country)){
            return new Amercia();
        }else if("英国".equals(country)){
            return new England();
        }
        return null;
    }
}
